﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Axis.BusinessObject.Axis.BusinessObject;
using Axis.Dao.Product;

namespace Sotipha.Web.Admin.Views.Gifts
{
    public partial class ListProduct : System.Web.UI.Page
    {
       
        CProductDao coreProductGroup = new CProductDao();
        string ProductType = "3";//Towntalk
        protected void Page_Load(object sender, EventArgs e)
        {
            string inputValue = string.Format("<InputValue  Context=\"FrontEnd\" ProductTypeID=\"{0}\"/>", ProductType);
            IList<CProductGroup> list = coreProductGroup.GetProductGroup(inputValue);
            string optCate = "";
            foreach (var item in list)
                optCate += string.Format("<option value='{0}'>{1}/{2}</option>", item.ID, item.Name_EN, item.Name_VN);
            lblOptionCate.Text = optCate;

        }
    }
}